Skip GdkDrawingContext in some tests
authorMatthias Clasen <mclasen@redhat.com>
Mon, 20 Jun 2016 19:26:26 +0000 (15:26 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 20 Jun 2016 19:27:20 +0000 (15:27 -0400)
GdkDrawingContext is not freely constructible, so we need
to skip it in the notify and finalize tests.

testsuite/gtk/notify.c
testsuite/gtk/objects-finalize.c

index 9b2a8e98b663990d35ff0ac0b96b766f66be79f1..c289c4650ff2758e54c702bc33bf1e55789f1aaa 100644 (file)
@@ -388,6 +388,7 @@ test_type (gconstpointer data)
   /* These can't be freely constructed/destroyed */
   if (g_type_is_a (type, GTK_TYPE_APPLICATION) ||
       g_type_is_a (type, GDK_TYPE_PIXBUF_LOADER) ||
+      g_type_is_a (type, GDK_TYPE_DRAWING_CONTEXT) ||
 #ifdef G_OS_UNIX
       g_type_is_a (type, GTK_TYPE_PRINT_JOB) ||
 #endif
index e0ebee005d8afa3a2669e15ea23f7a82b9a42cb6..0b3a5198dca09eafb92d470d96ca601d1406de95 100644 (file)
@@ -119,6 +119,7 @@ main (int argc, char **argv)
 #endif
          /* Not allowed to finalize a GdkPixbufLoader without calling gdk_pixbuf_loader_close() */
          all_types[i] != GDK_TYPE_PIXBUF_LOADER &&
+         all_types[i] != GDK_TYPE_DRAWING_CONTEXT &&
          all_types[i] != gdk_pixbuf_simple_anim_iter_get_type())
        {
          gchar *test_path = g_strdup_printf ("/FinalizeObject/%s", g_type_name (all_types[i]));